Skip to content

chore(deps): exact dependency versions, and the open Dependabot updates - #413

Merged
sergak01 merged 2 commits into
developfrom
chore/pin-dependency-versions
Dec 1, 2026
Merged

sergak01 merged 2 commits into
developfrom
chore/pin-dependency-versions

Conversation

@sergak01

@sergak01 sergak01 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

🧹 Exact dependency versions, and the open Dependabot updates in one

Two commits.

The open Dependabot updates (5581c47)

The updates of #378, #387, #407, #408 and #409 together, so they don't conflict on package-lock.json one after another:

Package Before → after Kind
ws 8.22.0 → 8.23.0 dependency
rimraf 6.1.3 → 6.1.4 dev
rollup 4.67.2 → 4.68.8 dev
tslib 2.8.1 → 2.9.1 dev
vitest, @vitest/coverage-v8 5.0.5 → 5.1.2 dev

Dependabot closes its pull requests once develop has these versions.

Exact versions (de6faf1)

Asked by the security team: every package names the one version it installs, never a range; updates come through Dependabot.

  • dependencies, devDependencies and overrides of the root and the three test fixtures are pinned to the versions their lockfiles install: no version changes (the lockfiles change only in their package.json entries; npm also lists the packages @tailwindcss/oxide-wasm32-wasi bundles in the Next.js fixtures' lockfiles).
  • overrides: a range becomes the one version installed (>=0.8.12 → 0.9.12, …); the override of chokidar, also a direct dependency, is its $chokidar reference, which npm requires once the dependency is exact.
  • peerDependencies stay ranges (next >= 13 < 17, svgtofont ^6.5.3): they say what pp-dev works with, not what is installed.
  • .npmrc with save-exact=true in the root and each fixture, so npm install <pkg> saves an exact version.
  • .github/dependabot.yml: versioning-strategy: increase. For a library the default (auto) widens a version into a range; increase moves the pinned version.
  • CLAUDE.md: the rule, under "After any dependency change".

What it means for projects that install pp-dev: they get exactly the versions of pp-dev's dependencies it was released with; a fix in one of them reaches them with a pp-dev release.

Not covered: Dependabot watches the root only. The fixtures depend on the pp-dev tarball the build makes (file:../../metricinsights-pp-dev-latest.tgz, not in git), which Dependabot can't resolve; their pinned versions move by hand, as their overrides do today. CI still installs them with --package-lock=false, which the shared workflow config sets.

🧪 Tests

  • npm run reinstall:all (build + reinstall in the fixtures) and npm run audit:all: root and fixtures clean.
  • npm run typecheck, lint 0 errors, unit 1613 passed, integration 72 passed.

  • No breaking changes (no version changes besides the five Dependabot updates)

The updates of the open Dependabot pull requests #378, #387, #407, #408 and #409, in one: ws 8.22.0 -> 8.23.0, rimraf 6.1.3 -> 6.1.4, rollup 4.67.2 -> 4.68.8, tslib 2.8.1 -> 2.9.1, vitest and @vitest/coverage-v8 5.0.5 -> 5.1.2.
Asked by the security team: each dependency names the one version it installs, never a range, and
updates come through Dependabot.

- dependencies, devDependencies and overrides of the root and the three test fixtures pinned to the
  versions their lockfiles install (no version changes); an override of a direct dependency is its
  $name reference (chokidar). peerDependencies stay ranges: they say what pp-dev works with.
- .npmrc with save-exact=true in the root and each fixture, so npm install saves exact versions.
- Dependabot: versioning-strategy increase, so it moves a pinned version instead of widening it
  into a range (the default for a library).
- CLAUDE.md: the rule, under "After any dependency change".
Copilot AI balanced review requested due to automatic review settings December 1, 2026 12:15
@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6323158c-d0f7-4433-b83c-c5c9dc3b35d0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the dependency-pinning and toolchain updates.

No open issues 🎉

3 files not reviewed
  • tests/test-commonjs/package-lock.json: Generated file
  • tests/test-nextjs-cjs/package-lock.json: Generated file
  • tests/test-nextjs/package-lock.json: Generated file
What changed in this PR

This PR pins dependency versions across pp-dev and its three test fixtures, and consolidates five open Dependabot updates for the development and build toolchain.

Changes:

  • 🧹 Pin dependencies, development dependencies, and overrides while preserving peer dependency ranges.
  • 🔐 Update ws, rimraf, rollup, tslib, and Vitest packages, including the upstream ws memory-exhaustion fix.
  • 🧹 Add exact-save npm settings, configure Dependabot to advance pinned versions, and document the policy.
File Description
tests/​test-nextjs/​package.json Pin Next.js ESM fixture dependencies.
tests/​test-nextjs/​package-lock.json Align pinned declarations and record bundled WASM dependencies.
tests/​test-nextjs/​.npmrc Enable exact-version saves.
tests/​test-nextjs-cjs/​package.json Pin Next.js CommonJS fixture dependencies.
tests/​test-nextjs-cjs/​package-lock.json Align pinned declarations and record bundled WASM dependencies.
tests/​test-nextjs-cjs/​.npmrc Enable exact-version saves.
tests/​test-commonjs/​package.json Pin Vite CommonJS fixture dependencies.
tests/​test-commonjs/​package-lock.json Align lockfile declarations with pinned versions.
tests/​test-commonjs/​.npmrc Enable exact-version saves.
package.json Pin root dependencies and overrides; apply dependency updates.
package-lock.json Record updated packages and exact root declarations.
CLAUDE.md Document pinning policy and peer dependency exceptions.
.npmrc Enable exact-version saves at the root.
.github/​dependabot.yml Set increase strategy for pinned-version updates.

Review effort: Balanced

@sergak01
sergak01 merged commit cc4550a into develop Dec 1, 2026
7 checks passed
@sergak01
sergak01 deleted the chore/pin-dependency-versions branch December 1, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants